package com.gxa.logistics.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.sql.Date;

public class MessionUpdateDTO {
    public String getLpnum() {
        return lpnum;
    }

    public void setLpnum(String lpnum) {
        this.lpnum = lpnum;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    @ApiModelProperty(name = "lpnum", notes = "车牌号码", dataType = "String", required = true)
    @NotNull(message = "车牌号码不能为空")
    //车牌号码
    private String lpnum;
    @ApiModelProperty(name = "date", notes = "日期", dataType = "Date", required = true)
    @NotNull(message = "日期不能为空")
    //日期
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date date;
    @ApiModelProperty(name = "times", notes = "任务次数", dataType = "Date", required = true)
    @NotNull(message = "任务次数不能为空")
    //出任务次数
    private Integer times;
}
